<!-- website index -->
<?php $this->render('common/header'); ?>
<table id="wslist-table">
    <tr>
        <th>
            #
        </th>
        <th>
            Name
        </th>
        <th>
            Url
        </th>
        <th>
            Users
        </th>
        <th>
            Action
        </th>
    </tr>
    <?php foreach ($websites as $website): ?>
        <tr>
            <td>1</td>
            <td><?php echo $website->name; ?></td>
            <td><?php echo $website->url; ?></td>
            <td>website users</td>
            <td><a href="javascript:void(0)" onclick="javascript:window.open('index.php?cont=website&amp;act=userslist&amp;wsId=<?php echo $website->id; ?>','','width=300,height=600,resizable=1,scrollbars=1','');">Add new user</a></td>
        </tr>
    <?php endforeach; ?>
</table>
<?php $this->render('common/footer'); ?>